/*****************************************************************************************
This file is a part of Arise library.

This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Lesser General Public License for more details.

Arise Engine		EffectFile.h

					E-mail:		arise_engine@mail.ru

created:			22.09.2008
last changes:		22.09.2008
*****************************************************************************************/
#pragma once
#include "..\engine\BaseObject.h"
#include "..\engine\FileData.h"

class EffectFile: public BaseObject
{
private:

	LPDIRECT3DDEVICE9	m_d3d_device;
	LPD3DXEFFECT		m_effect;

public:
	EffectFile();
	virtual ~EffectFile();

	bool Init(LPDIRECT3DDEVICE9 device, FileData* file);
	void SetMatrixs(const D3DXMATRIX& matView,const D3DXMATRIX& matProj,const D3DXMATRIX& matObject);
	void Begin();
	void End();
	void Release();

	LPD3DXEFFECT	GetEffect() const	{return m_effect;}

};

